package com.hwadee.ems.enums;

import com.fasterxml.jackson.annotation.JsonValue;

import com.baomidou.mybatisplus.annotation.EnumValue;

import lombok.Getter;

@Getter
public enum UserRole {
    STUDENT(0, "学生"),
    TEACHER(1, "教师"),
    JURIST(2, "教务员"),
    OTHER(3, "其他");

    @EnumValue
    private final int value;
    @JsonValue
    private final String description;

    UserRole(int value, String description) {
        this.value = value;
        this.description = description;
    }
    
}
